package com.heima.utils.thread;

import com.heima.model.wemedia.pojos.WmUser;

public class WmThreadLocal {

    private static ThreadLocal<WmUser> WM_THREAD_LOCAL=new ThreadLocal();

    public static void setWmUser(WmUser wmUser){
        WM_THREAD_LOCAL.set(wmUser);
    }

    public static  WmUser getWmUser(){
      return   WM_THREAD_LOCAL.get();
    }

    public static  void removeWmUser(){
        WM_THREAD_LOCAL.remove();
    }
}
